package com.google.code.donkirkby.exceptions;

public class FaultException extends RuntimeException
{
	public FaultException(Throwable cause)
	{
		super(
				"An unexpected exception has occurred. Please try again or " +
				"notify your system administrator if the problem continues.", 
				cause);
	}

	public static FaultException wrap(Throwable e)
	{
		if (e instanceof FaultException)
		{
			return (FaultException) e;
		}
		return new FaultException(e);
	}
}
